package com.meituan.sdk.model.resv2.table.supplySaveTable;

import com.meituan.sdk.annotations.ApiMeta;
import java.util.List;
import com.google.gson.reflect.TypeToken;
import javax.validation.constraints.NotBlank;
import java.lang.reflect.Type;
import com.meituan.sdk.internal.utils.JsonUtil;
import com.google.gson.annotations.SerializedName;
import com.meituan.sdk.MeituanResponse;
import com.meituan.sdk.MeituanRequest;
import javax.validation.constraints.NotEmpty;

/**
* 保存/更新桌型桌位
* This file was automatically generated.
*/
@ApiMeta(
    path = "/resv2/table/supply/saveOrUpdateTable",
    businessId = 7,
    apiVersion = "10006",
    apiName = "supply_save_table",
    needAuth = true
)
public class SupplySaveTableRequest implements MeituanRequest<Boolean> {
    @NotEmpty(message = "vendorTableSyncDTOList不能为空")
    @SerializedName("vendorTableSyncDTOList")
    private List<VendorTableSyncDTO> vendorTableSyncDTOList;
    /**
    * <p data-diff-id="ct-diff-id-b2af2ae9-40f5-4b5e-b643-0e0021224bb0">请求唯一id</p>
    */
    @NotBlank(message = "uuid不能为空")
    @SerializedName("uuid")
    private String uuid;

    public List<VendorTableSyncDTO> getVendorTableSyncDTOList() {
        return vendorTableSyncDTOList;
    }
    public void setVendorTableSyncDTOList(List<VendorTableSyncDTO> vendorTableSyncDTOList) {
        this.vendorTableSyncDTOList = vendorTableSyncDTOList;
    }
    public String getUuid() {
        return uuid;
    }
    public void setUuid(String uuid) {
        this.uuid = uuid;
    }


    @Override
    public MeituanResponse<Boolean> deserializeResponse(String response) {
        Type type = new TypeToken<MeituanResponse<Boolean>>(){}.getType();
        return JsonUtil.fromJson(response, type);
    }
    @Override
    public String serializeToJson() {
        return JsonUtil.toJson(this);
    }


    @Override
    public String toString() {
        return "SupplySaveTableRequest{" + "vendorTableSyncDTOList=" + vendorTableSyncDTOList + "," + "uuid=" + uuid + "}";
    }
}
